# conftest.py
def pytest_html_report_title(report):
    report.title = "测试报告"  # 设置报告标题（可选）

def pytest_configure(config):
    # 确保报告以 UTF-8 编码生成
    config.option.htmlpath = "report/login_report.html"
    config.option.self_contained_html = True